package org.summerframework.component.security.permissions.service;

import org.summerframework.component.mybatisplus.BasePlusQueryService;
import org.summerframework.component.security.permissions.service.dto.UserPermissionsDTO;
import org.summerframework.component.security.permissions.service.dto.UserPermissionsQueryDTO;

import java.util.List;
import java.util.Map;

public interface UserPermissionsService extends BasePlusQueryService<UserPermissionsDTO, UserPermissionsQueryDTO> {
    UserPermissionsDTO selectByCode(String code);

    List<UserPermissionsDTO> selectParentById(List<UserPermissionsDTO> list, Long id);

    List<UserPermissionsDTO> selectByParentId(Long parentId);

    void repairData(Map<Long, List<UserPermissionsDTO>> groupParentId);

    void repairData(Long parentId, Map<Long, List<UserPermissionsDTO>> groupParentId);
}
